Hi, chrisrelfy - Fri Oct 25 04:57:37 EDT 2013 |
Re: Trying to re-establish a deleted link. Maybe I'm missing something here but.... you're trying to put back 1 link from 1 object in a module to 1 object in another module that was deleted (by mistake it seems)? |
Re: Trying to re-establish a deleted link. Just in case: open the module, then the DXL window from the Tools menu of the module. Then the "m = current" will work. I see you got your code from the DXL manual. Perhaps add "else print "no module open\n" at the end. I've never used "reserved", but your use seems to deal with History. Using it at the module level just turns on/off History logging for Links. I think you will find it difficult to search History to reliably determine if a link "should" or "did" exist. Even if History of Linking is on, you get no History when you delete the LinkSet or purge the target module or archive/restore the module, or when someone turns off History, links, and turns it back on. To search actual History, you will want to start off with
Be advised you get History only in the SOURCE object. The target object of the link gets no History. Back to what you are trying to do. Recreate deleted links? Recreate links FROM a module you just undeleted? Recreate links TO a module you just undeleted? Recreate links to module M2 that already exist to a similar module M1? -Louie
|